package modellayer;

public class Item {

	private int id;
	private String name;
	private String description;
	private double price;
	private int amount;
	private String status;
	private int max;
	private int min;
	
	private Type type;
	private Supplier supplier;
	
	public Item(int id){
		this.id = id;
	}
	
	public Item(String name, String description, double price, int amount, String status,int max, int min, Type type, Supplier supplier){
		this.name = name;
		this.description = description;
		this.price = price;
		this.amount = amount;
		this.setStatus(status);
		this.max = max;
		this.min = min;
		this.type = type;
		this.supplier = supplier;
	}
	
	public Item(int id, String name, String description, double price, int amount, String status, int max, int min, Type type, Supplier supplier){
		this.id = id;
		this.name = name;
		this.description = description;
		this.price = price;
		this.amount = amount;
		this.status = status;
		this.max = max;
		this.min = min;
		this.type = type;
		this.supplier = supplier;
	}
	
	public Item() {
		// TODO Auto-generated constructor stub
	}

	public void setID(int id){
		this.id = id;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public void setDescription(String description){
		this.description = description;
	}
	
	public void setPrice(double price){
		this.price = price;
	}
	
	public void setAmount(int amount){
		this.amount = amount;
	}
	
	public void setMax(int max){
		this.max = max;
	}
	
	public void setMin(int min){
		this.min = min;
	}
	
	public void setType(Type type){
		this.type = type;
	}
	
	public void setSupplier(Supplier supplier){
		this.supplier = supplier;
	}
	
	public int getID(){
		return id;
	}
	
	public String getName(){
		return name;
	}
	
	public String getDescription(){
		return description;
	}
	
	public double getPrice(){
		return price;
	}
	
	public int getAmount(){
		return amount;
	}
	
	public int getMax(){
		return max;
	}
	
	public int getMin(){
		return min;
	}
	
	public Type getType(){
		return type;
	}
	
	public Supplier getSupplier(){
		return supplier;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
}
